Javascript Program To Check Whether Two Strings Are Anagram Of Each Other
Write a function to check whether two given strings are anagram of each other or not. An anagram of a string is another string that contains the same characters, only the order of characters can be different. For example, “abcd” and “dabc” are an anagram of each other....
read more
Javascript Program To Reverse Words In A Given String
Example: Let the input string be “i like this program very much”. The function should change the string to “much very program this like i”...
read more
Goldman Sachs Interview Experience | Coding Round
Coding Round had 4 sections and time duration was 2 hours:...
read more
Javascript Program For Stock Buy Sell To Maximize Profit
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is {100, 180, 260, 310, 40, 535, 695}, the maximum profit can earned by buying on day 0, selling on day 3. Again buy on day 4 and sell on day 6. If the given array of prices is sorted in decreasing order, then profit cannot be earned at all....
read more
Javascript Program For Flattening A Linked List
Given a linked list where every node represents a linked list and contains two pointers of its type:...
read more
QuickSort – Data Structure and Algorithm Tutorials
QuickSort is a sorting algorithm based on the Divide and Conquer algorithm that picks an element as a pivot and partitions the given array around the picked pivot by placing the pivot in its correct position in the sorted array....
read more
Reverse words in a given string
Given a string, the task is to reverse the order of the words in the given string....
read more
Queue using Stacks
The problem is opposite of this post. We are given a stack data structure with push and pop operations, the task is to implement a queue using instances of stack data structure and operations on them....
read more
Goldman Sachs Internship Interview Experience | On-Campus 2022
Goldman Sachs visited our campus on 5 Aug 2021 for Summer Internship 2022....
read more
Goldman Sachs Interview | Set 4 (On-Campus for Internship)
Goldman Sachs visited our campus for both full placement(NAPA) and internship. I am going to share my experience for internship....
read more
Check if encrypted information remains confidential during its Validity Period
Given an array key of size n, instruction count representing the number of keys a hijacker can test per second, during a total validity period which is the average time to find a message key, determine if the encrypted information remains confidential throughout its validity period. Each function will return two items of information as integers:...
read more
Goldman Sachs Interview Experience | For 3 years experienced
I was contacted by a recruiter for the role of  Software Engineer – Java developer. Goldman Sachs was coming to Hyderabad for a drive. They call it Super Day....
read more